<?php
include_once(SYSTEM.'/ValidationRule.php');

class RequiredRule extends ValidationRule
{
	public function __construct($message)
	{
		if(!isset($message))
		{
			$message = 'Truong du lieu khong duoc thieu';
		}
		parent::__construct($message);
	}
	
	public function Validate($param)
	{		
		if(!isset($param) || empty($param))
		{
			return $this->Message;
		}
		return 'OK';
	}
}